function get_chart_sensorlist (val){
  let ads = {
    "1":"温湿度传感器",
    "2":"UPS",
    "3":"红外探测器",
    "4":"烟雾报警器",
    "5":"三相电采集器",
    "6":"市电控制器",
    "7":"门磁",
    "8":"非定位漏水报警器",
    "9":"定位漏水报警器",
    "10":"空调控制器",
    "11":"精密空调",
    "12":"发电机",
	"13":"多功能火灾探测器(漏电模块)"
  };
  return ads[val];
}

function get_attr1(val){
  let arr = {
    "65536":"采集超时",
    "65537":"温度",
    "65538":"湿度",
    "131072":"采集超时",
    "131073":"输入电压",
    "131074":"输入故障电压",
    "131075":"输入频率",
    "131076":"输出电压",
    "131077":"输出负载率",
    "131078":"电池电压",
    "131079":"温度",
    "131080":"市电异常",
    "131081":"电池电压低",
    "131082":"旁路模式",
    "131083":"UPS故障",
    "131084":"UPS脱机",
    "131085":"测试中",
    "131086":"主动关机",
    "131087":"输出电流",
    "131088":"供电方式",
    "131089":"整流侧供电状态",
    "131090":"开机状态",
    "131091":"电池充电状态",
    "131092":"同步/不同步状态",
    "131093":"整流器(故障)",
    "131094":"逆变器(故障)",
    "131095":"蓄电池电压异常",
    "131096":"散热器过温",
    "131097":"风扇故障",
    "131098":"缺零故障",
    "131099":"母线电压异常",
    "131100":"充电器故障",
    "131101":"输出短路",
    "131102":"过载超时",
    "196608":"采集超时",
    "196609":"告警",
    "262144":"采集超时",
    "262145":"告警",
    "327680":"采集超时",
    "327681":"A相电压",
    "327682":"B相电压",
    "327683":"C相电压",
    "327684":"A相电流",
    "327685":"B相电流",
    "327686":"C相电流",
    "327687":"AB线电压",
    "327688":"BC线电压",
    "327689":"CA线电压",
    "393216":"采集超时",
    "393217":"告警",
    "458752":"采集超时",
    "458753":"告警",
    "524288":"采集超时",
    "524289":"告警",
    "589824":"采集超时",
    "589825":"电阻低于阈值",
    "589826":"电流高于阈值",
    "589827":"断路",
    "589828":"电流高于阈值",
    "589829":"漏水长度",
    "655360":"采集超时",
    "655361":"送风口温度",
    "655362":"回风口温度",
    "655363":"电流",
    "655364":"工作状态",
    "655365":"温度异常",
    "655366":"温度上限异常",
    "655367":"温度下限异常",
    "655368":"红外发送错误",
    "655369":"电流异常",
    "720896":"采集超时",
    "720897":"室内温度",
    "720898":"室内湿度",
    "720899":"加湿器电流",
    "720900":"电源频率",
    "720901":"空调运行模式",
    "720902":"排气温度1报警",
    "720903":"盘管冻结1报警",
    "720904":"风机过载1报警",
    "720905":"高温报警",
    "720906":"低温报警",
    "720907":"高湿报警",
    "720908":"低湿报警",
    "720909":"过滤网堵报警",
    "720910":"远程关机报警",
    "720911":"温湿度检测板故障报警",
    "720912":"风机运行超时报警",
    "720913":"压缩机1运行超时报警",
    "720914":"加热器1运行超时",
    "720915":"加湿器运行超时报警",
    "720916":"电源丢失报警",
    "720917":"电源过压报警",
    "720918":"电源欠压报警",
    "720919":"电源频偏报警",
    "720920":"电源缺相报警",
    "720921":"电源反相报警",
    "720922":"地板溢水报警",
    "720923":"排气1低温报警",
    "720924":"送风高温",
    "720925":"风压传感器故障",
    "720926":"排气1低温锁定",
    "720927":"低压传感器1失效",
    "720928":"过滤网维护报警",
    "720929":"电加热报警",
    "720930":"室外温度",
    "720931":"高压报警",
    "720932":"低压报警",
    "720933":"电源过欠压报警",
    "720934":"电源故障报警",
    "720935":"传感器板丢失报警",
    "720936":"短周期1报警",
    "720937":"通讯故障报警",
    "720938":"加湿器故障报警",
    "786432":"采集超时",
    "786433":"电瓶电压",
    "786434":"充电电压",
    "786435":"发电频率值",
    "786436":"总发电相电流",
    "786437":"总视在功率",
    "786438":"总有功功率",
    "786439":"总无功功率",
    "786440":"总功率因数",
    "786441":"市电频率",
    "786442":"本次运行时间",
    "786443":"动态负载率",
    "786444":"本次负载率",
    "786445":"累计负载率",
    "786446":"本次发电量",
    "786447":"累计发电量",
    "786448":"超速报警",
    "786449":"低速报警",
    "786450":"低油压报警",
    "786451":"高水温报警",
    "786452":"高油温报警",
    "786453":"高缸温报警",
    "786454":"高箱温报警",
    "786455":"低燃油位报警",
    "786456":"低机油位报警",
    "786457":"即时分闸报警",
    "786458":"即时停车报警",
    "786459":"D+开路报警",
    "786460":"转速信号消失报警",
    "786461":"油压传感器开路报警",
    "786462":"水温传感器开路报警",
    "786463":"油温传感器开路报警",
    "786464":"缸温传感器开路报警",
    "786465":"箱温传感器开路报警",
    "786466":"油位传感器开路报警",
    "786467":"超频报警",
    "786468":"低频报警",
    "786469":"过压报警",
    "786470":"低压报警",
    "786471":"过流报警",
    "786472":"电流不平衡报警",
    "786473":"过功率报警",
    "786474":"发电缺相报警",
    "786475":"发电逆相序报警",
    "786476":"发电合闸失败报警",
    "786477":"发电分闸失败报警",
    "786478":"市电合闸失败报警",
    "786479":"市电分闸失败报警",
    "786480":"ECU报警报警",
    "786481":"ECU通信失败报警",
    "786482":"低水位开关报警",
    "786483":"百叶窗打开状态报警",
    "786484":"急停报警",
    "786485":"起动失败",
    "786486":"停机失败",
    "786487":"累计启动次数",
    "786488":"累计运行时间",
    "786489":"工作状态",
    "786490":"电池电压过低",
    "786491":"电池电压过高",
    "786492":"冷却液低",
    "786493":"维护时间到",
    "786494":"发电UA",
    "786495":"发电UB",
    "786496":"发电UC",
    "786497":"A相电流",
    "786498":"B相电流",
    "786499":"C相电流",
    "786500":"转速",
    "851969":"剩余电流值",
    "851970":"温度值1",
    "851971":"温度值2",
    "851972":"温度值3",
    "851973":"温度值4",
    "851974":"电压A",
    "851975":"电压B",
    "851976":"电压C",
    "851977":"电流A",
    "851978":"电流B",
    "851979":"电流C",
    "851980":"视在功率A高16bit",
    "851981":"视在功率A低16bit",
    "851982":"视在功率B高16bit",
    "851983":"视在功率B低16bit",
    "851984":"视在功率C高16bit",
    "851985":"视在功率C低16bit",
    "851986":"功率因素A",
    "851987":"功率因素B",
    "851988":"功率因素C",
    "851989":"有功计量A高16bit",
    "851990":"有功计量A低16bit",
    "851991":"有功计量B高16bit",
    "851992":"有功计量B低16bit",
    "851993":"有功计量C高16bit",
    "851994":"有功计量C低16bit",
  };
  return arr[val];
}

function get_unit_list(val){
  let arr = {
    "65537":"℃",
    "65538":"%",
    "131073":"V",
    "131074":"V",
    "131075":"Hz",
    "131076":"V",
    "131077":"%",
    "131078":"V",
    "131079":"℃",
    "131087":"A",
    "327681":"V",
    "327682":"V",
    "327683":"V",
    "327684":"A",
    "327685":"A",
    "327686":"A",

    "327687":"V",
    "327688":"V",
    "327689":"V",

    "655361":"℃",
    "655362":"℃",
    "655363":"A",
    "720897":"℃",
    "720898":"%",
    "720899":"A",
    "720900":"Hz",
    "720930":"℃",

    "786433":"V",
    "786434":"V",
    "786435":"Hz",
    "786436":"A",
    "786437":"kVA",
    "786438":"kW",
    "786439":"kVAr",
    "786442":"hour",
    "786443":"%",
    "786444":"%",
    "786445":"%",
    "786446":"kWh",
    "786447":"kWh",

    "851969":"mA",
    "851970":"℃",
    "851971":"℃",
    "851972":"℃",
    "851973":"℃",
    "851974":"V",
    "851975":"V",
    "851976":"V",
    "851977":"A",
    "851978":"A",
    "851979":"A",
    "851980":"W",
    "851981":"W",
    "851982":"W",
    "851983":"W",
    "851984":"W",
    "851985":"W",
    "851986":"%",
    "851987":"%",
    "851988":"%",
    "851989":"W/H",
    "851990":"W/H",
    "851991":"W/H",
    "851992":"W/H",
    "851993":"W/H",
    "851994":"W/H"

  }
  return arr[val];
}

function  get_pluginInfo(val){
  let arr = {
    "65793":[
      {
        "supplier":"建大仁科",
        "model":"RS-WS-N01-*"
      }
    ],
    "65794":[
      {
        "supplier":"建大仁科",
        "model":"RS-WS-V05-*"
      }
    ],
    "65795":[
      {
        "supplier":"建大仁科",
        "model":"RS-WS-I20-*"
      }
    ],
    "66047":[
      {
        "supplier":"建大仁科",
        "model":"RS-WS-N01-双机测试"
      }
    ],
    "66049":[
      {
        "supplier":"北方测控",
        "model":"DB506"
      }
    ],
    "66305":[
      {
        "supplier":"快乐海岸",
        "model":"KM21B10"
      }
    ],
    "131329":[
      {
        "supplier":"山特电子",
        "model":"C1KS"
      }
    ],
    "131585":[
      {
        "supplier":"艾默生",
        "model":"UHA1R-0100L"
      }
    ],
    "196865":[
      {
        "supplier":"博世",
        "model":"ISC-BDL2-WP12G-CHI"
      }
    ],
    "197121":[
      {
        "supplier":"时刻",
        "model":"SK-181"
      }
    ],
    "262401":[
      {
        "supplier":"柯泰",
        "model":"SD02"
      }
    ],
    "327937":[
      {
        "supplier":"顶德电气",
        "model":"DED194E-35SY(相电压400:5)"
      }
    ],
    "327938":[
      {
        "supplier":"顶德电气",
        "model":"DED194E-35SY(线电压400:5)"
      }
    ],
    "393473":[
      {
        "supplier":"缺省",
        "model":"缺省"
      }
    ],
    "459009":[
      {
        "supplier":"缺省",
        "model":"缺省"
      }
    ],
    "524545":[
      {
        "supplier":"祥为科技",
        "model":"XW-PC-1"
      }
    ],
    "590081":[
      {
        "supplier":"立科",
        "model":"ATL600"
      }
    ],
    "655617":[
      {
        "supplier":"易运科技",
        "model":"ER-IR01"
      }
    ],
    "655873":[
      {
        "supplier":"大榕树",
        "model":"AIRC1000"
      }
    ],
    "721153":[
      {
        "supplier":"艾默生",
        "model":"P1020FAPM1R"
      }
    ],
    "721154":[
      {
        "supplier":"艾默生",
        "model":"DME12MHP5"
      }
    ],
    "786689":[
      {
        "supplier":"孚创动力",
        "model":"DC7xD"
      }
    ],
    "786690":[
      {
        "supplier":"众智科技",
        "model":"HGM6100"
      }
    ],
    "524546":[
      {
        "supplier":"非定位水浸",
        "model":"DINGZHI"
      }
    ],
    "459010":[
      {
        "supplier":"门磁",
        "model":"TEST6101"
      }
    ],
    "852225":[
      {
        "supplier":"睿控电气",
        "model":"RK-FPS"
      }
    ]
		
  };

  /*var defalut_arr = {"supplier":"未识别","model":"未识别"};


  if(typeof(arr[val]["supplier"]) == "string"){
       return arr[val];
  }else{
       return defalut_arr;
  }*/

  return arr[val];

}



function get_orderName(val){
  let arr = {
    "393217":"闭合",
    "393218":"断开",
    "655361":"开/关",
    "655362":"开机",
    "655363":"关机",
    "655638":"制冷16度",
    "655639":"制冷17度",
    "655640":"制冷18度",
    "655641":"制冷19度",
    "655648":"制冷20度",
    "655649":"制冷21度",
    "655650":"制冷22度",
    "655651":"制冷23度",
    "655652":"制冷24度",
    "655653":"制冷25度",
    "655654":"制冷26度",
    "655655":"制冷27度",
    "655656":"制冷28度",
    "655657":"制冷29度",
    "655664":"制冷30度",
    "655894":"制热16度",
    "655895":"制热17度",
    "655896":"制热18度",
    "655897":"制热19度",
    "655904":"制热20度",
    "655905":"制热21度",
    "655906":"制热22度",
    "655907":"制热23度",
    "655908":"制热24度",
    "655909":"制热25度",
    "655910":"制热26度",
    "655911":"制热27度",
    "655912":"制热28度",
    "655913":"制热29度",
    "655920":"制热30度",
    "655921":"制热31度",
    "655922":"制热32度",
    "656152":"除湿18度",
    "656153":"除湿19度",
    "656160":"除湿20度",
    "656161":"除湿21度",
    "656162":"除湿22度",
    "656163":"除湿23度",
    "656164":"除湿24度",
    "656165":"除湿25度"
  }
  return arr[val];
}

function get_alarmOption(val){
  let  arr ={
    "1":"告警",
    "2":"过高",
    "3":"过低"
  }
  return arr[val];
}

function get_interType(val){
  let arr = {
    "1":"AI",
    "2":"DI",
    "3":"DO",
    "4":"UART",
    "5":"ETHERNET"
  };
  return arr[val];
}

function get_interTypeID(val){
  let arr = {
    "AI":1,
    "DI":2,
    "DO":3,
    "UART":4,
    "ETHERNET":5
  };
  return arr[val];
}

function get_coldID(val){
  let arr = {
    "16":655638,
    "17":655639,
    "18":655640,
    "19":655641,
    "20":655648,
    "21":655649,
    "22":655650,
    "23":655651,
    "24":655652,
    "25":655653,
    "26":655654,
    "27":655655,
    "28":655656,
    "29":655657,
    "30":655664,
    "31":655665,
    "32":655666
  }
  return arr[val];
}

function get_dehumidifyID(val){
  let arr = {
    "18":656152,
    "19":656153,
    "20":656160,
    "21":656161,
    "22":656162,
    "23":656163,
    "24":656164,
    "25":656165,
  }
  return arr[val];
}

function get_default_preair_data(){
  let arr = {
    "720897":"error",//室内温度
    "720898":"error",//室内湿度
    "720901":"error",//空调运行模式
    "720902":false,//排气温度1
    "720903":false,//盘管冻结1
    "720904":false,//风机过载1
    "720905":false,//高温报警
    "720906":false,//低温报警
    "720907":false,//高湿报警
    "720908":false,//低湿度报警
    "720909":false,//过滤网络报警
    "720910":false,//远程关机报警
    "720911":false,//温湿度监测板故障报警
    "720912":false,//风机运行超时报警
    "720913":false,//压缩机1运行超时报警
    "720914":false,//加热器1运行超时
    "720915":false,//加湿器运行超时报警
    "720916":false,//电源丢失报警
    "720917":false,//电源过压报警
    "720918":false,//电源欠压报警
    "720919":false,//电源频偏报警
    "720920":false,//电源缺项报警
    "720921":false,//电源反相报警
    "720922":false,//地板溢水报警
    "720923":false,//排气1低温报警
    "720924":false,//送风高温
    "720925":false,//风压传感器故障
    "720926":false,//排气1低温锁定
    "720927":false,//低压传感器1失效
    "720928":false,//过滤网维护报警
    "720929":false,//电加热报警
    "720930":"error",//室外温度
    "720931":false,//高压报警
    "720932":false,//低压报警
    "720933":false,//电源过欠压报警
    "720934":false,//电源故障报警
    "720935":false,//传感器板丢失报警
    "720936":false,//短周期1报警
    "720937":false,//通讯故障报警
    "720938":false//加湿器故障报警
  }
  return arr;
}

function get_default_ups_data(){
  let arr = {
    "131073":"error",//输入电压
    "131076":"error",//输出电压
    "131080":false,//市电异常
    "131087":"error",//输出电流
    "131088":"error",//供电方式
    "131090":"error",//开机状态
    "131091":"error",//电池充电状态
    "131092":false,//同步/不同步状态
    "131093":false,//整流器（故障）
    "131094":false,//逆变器（故障）
    "131095":false,//蓄电池电压异常
    "131096":false,//散热器过温
    "131097":false,//风扇故障
    "131098":false,//缺零故障
    "131099":false,//母线电压异常
    "131100":false,//充电器故障
    "131101":false,//输出短路
    "131102":false,//过载超时
    "numbersa":0
  }
  return arr;
}

//精密空调:pliginID:721153(000B0101)艾默生:P1020FAPM1R、float型数据
function show_preair_float_param1(){
  let arr = [
    "720897",
    "720898",
    "720901"
  ];
  return arr;
}

//精密空调:pliginID:721153(000B0101)艾默生:P1020FAPM1R
function show_preair_boole_param1(){
  let arr = [
    "720902",
    "720903",
    "720904",
    "720905",
    "720906",
    "720907",
    "720908",

    "720909",
    "720910",
    "720911",
    "720912",
    "720913",
    "720914",
    "720915",

    "720916",
    "720917",
    "720918",
    "720919",
    "720920",
    "720921",
    "720922",

    "720923",
    "720924",
    "720925",
    "720926",
    "720927",
    "720928",
    "720929"
  ];
  return arr;
}


//精密空调:pliginID:721154(000B0102)艾默生:DME12MHP5、float型数据
function show_preair_float_param2(){
  let arr = [
    "720897",
    "720898"
  ];
  return arr;
}


//精密空调:pliginID:721154(000B0102)艾默生:DME12MHP5、布尔型数据
function show_preair_boole_param2(){
  let arr = [
    "720896",
    "720902",
    "720903",
    "720905",
    "720906",

    "720907",
    "720908",
    "720916",
    "720917",
    "720920",

    "720934",
    "720935",
    "720936",
    "720937",
    "720938"
  ]
  return arr;
}


//UPS:pliginID:131329(00020101)山特电子:C1KS
function show_ups_param1(){

}


function show_ups_float_param2(){//UPS:pliginID:131585(00020201)艾默生:UHA1R-0100L、float型数据
  let arr = [
    "131090",//开机状态
    "131088",//供电方式
    "131091",//电池充电状态
    "131095" //蓄电池电压异常
  ]
  return arr;
}

function show_ups_more_float_param2(){//UPS:pliginID:131585(00020201)艾默生:UHA1R-0100L、float型数据
  let arr = [
    "131073",//输入电压
    "131076",//输出电压
    "131087" //输出电流
  ]
  return arr;
}

function show_ups_boole_param2(){//UPS:pliginID:131585(00020201)艾默生:UHA1R-0100L、布尔型型数据
  let arr = [
    "131072",//采集超时
    "131092",//同步/不同步状态
    "131080",//市电异常
    "131093",//整流器（故障）
    "131094",//逆变器（故障）
    "131096",//散热器过温

    "131097",//风扇故障
    "131098",//缺零故障
    "131099",//母线电压异常
    "131100",//充电器故障
    "131101",//输出短路
    "131102" //过载超时
  ]
  return arr;
}

//发电机:pluginID:786689(000C0101)孚创动力:DC7xD、float数据
function show_alternator_float_param1(){
  let arr = [
    "786489",//档位状态
    "786446",//本次发电量
    "786447",//累计发电量
    "786442",//本次运行时间
    "786488",//累计运行时间
    "786487"//累计启动次数
    /*"786443",//动态负载率
    "786436" //总发电相电流*/
  ]
  return arr;
}

//漏电模块:pluginID:852225(000D0101)睿控电气:RK-FPS、float数据(悬浮框)
function show_leakage_float_param1(){
  let arr = [
    "851969",//漏电电流
    "851970",//温度值1
    "851971",//温度值2
    "851972",//温度值3
    "851973",//温度值4
    "851974",//电压A
    "851975",//电压B
    "851976",//电压C
  ]
  return arr;
}

//漏电模块:pluginID:852225(000D0101)睿控电气:RK-FPS、float数据(悬浮框)
function show_leakage_more_float_param2(){
  let arr = [
    "851980", //视在功率A高16bit
    "851981", //视在功率A低16bit
    "851982", //视在功率B高16bit
    "851983", //视在功率B低16bit
    "851984", //视在功率C高16bit
    "851985", //视在功率C低16bit
    "851986", //功率因素A
    "851987", //功率因素B
    "851988", //功率因素C
    "851989", //有功计量A高16bit
    "851990", //有功计量A低16bit
    "851991", //有功计量B高16bit
    "851992", //有功计量B低16bit
    "851993", //有功计量C高16bit
    "851994", //有功计量C低16bit
  ]
  return arr;
}



//发电机:pluginID:786689(000C0101)孚创动力:DC7xD、float数据(弹框)
function show_alternator_more_float_param1(){
  let arr = [
    "786446",//本次发电量
    "786447",//累计发电量
    "786442",//本次运行时间
    "786488",//累计运行时间
    "786487",//累计启动次数

    "786443",//动态负载率
    "786436", //总发电相电流
    "786433",//电瓶电压
    "786434",//充电电压
    "786435",//发电频率值

    "786437",//总视在功率
    "786438",//总有功功率
    "786439",//总无功功率
    "786440",//总功率因数
    "786441",//市电频率

    "786444",//本次负载率
    "786445"//累计负载率

  ]
  return arr;
}

//发电机:pluginID:786690(000C0102)众智科技-HGM6100、float数据(弹框)
function show_alternator_more_float_param2(){
  let arr = [
    "786494", //发电UA
    "786495", //发电UB
    "786496", //发电UC
    "786435", //发电频率
    "786497", //A相电流
    "786498", //B相电流
    "786499", //C相电流
    "786500", //转速
    "786433", //电池电压
    "786488", //累计运行时间
    "786487", //累计启动次数
    "786447", //累计发电量
  ]
  return arr;
}


//发电机:pluginID:786689(000C0101)孚创动力:DC7xD、布尔型数据
function show_alternator_boole_param1(){
  let arr = [
    "786432",//采集超时
    "786448",//超速报警
    "786449",//低速报警
    "786450",//低油压报警
    "786451", //高水温报警
    "786452",//高油温报警
    "786453",//高缸温报警
    "786454",//高箱温报警

    "786455",//低燃油位报警
    "786456",//低机油位报警
    "786457",//即时分闸报警
    "786458",//即时停车报警
    "786459",//D+开路报警
    "786460",//转速信号消失报警
    "786461",//油压传感器开路报警
    "786462",//水温传感器开路报警


    "786463",//油温传感器开路报警
    "786464",//缸温传感器开路报警
    "786465",//箱温传感器开路报警
    "786466",//油位传感器开路报警
    "786467", //超频报警
    "786468",//低频报警
    "786469",//过压报警
    "786470",//低压报警

    "786471",//过流报警
    "786472",//电流不平衡报警
    "786473",//过功率报警
    "786474",//发电缺相报警
    "786475",//发电逆相序报警
    "786476",//发电合闸失败报警
    "786477",//发电分闸失败报警
    "786478",//市电合闸失败报警

    "786479",//市电分闸失败报警
    "786480",//ECU报警报警
    "786481",//ECU通信失败报警
    "786482",//低水位开关报警
    "786483",//百叶窗打开状态报警
    "786484",//急停报警
    "786485",//起动失败
    "786486" //停机失败
  ]
  return arr;
}

//发电机:pluginID:786690(000C0102)众智科技-HGM6100、布尔型数据
function show_alternator_boole_param2(){
  let arr = [
    "786493", //维护时间到警告
    "786484", //紧急停机
    "786448", //超速
    "786449", //欠速
    "786467", //超频

    "786468", //低频
    "786469", //过压
    "786470", //欠压
    "786471", //过流
    "786485", //起动失败

    /*"786471", //过流*/

    "786451", //高水温
    "786450", //低油压
    "786486", //停机失败
    "786455", //低燃油位
    "786490", //电池电压低

    "786491", //电池电压高
    "786460", //转速信号消失
    "786492", //冷却液低警告
    "786462", //水温传感器开路
    "786461", //油压传感器开路

  ]
  return arr;
}

/**
 * 可扩充的解决方案
 * @param bits 格式化位数
 * @param identifier 补全字符
 * @param value 值
 */
/*function dataLeftCompleting(bits, identifier, value){
    value = Array(bits + 1).join(identifier) + value;
    return value.slice(-bits);
}*/


function hex10to16(num){//8位
  num = Array(8 + 1).join("0") + parseInt(num).toString(16);
  return num.slice(-8);
}


function hex16to10(string){
  var num = parseInt(string,16);
  return num;
}



export { //很关键
  get_chart_sensorlist,
  get_attr1,
  get_pluginInfo,
  get_orderName,
  get_alarmOption,
  get_interType,
  get_interTypeID,
  get_unit_list,
  get_coldID,
  get_dehumidifyID,
  get_default_preair_data,
  get_default_ups_data,
  hex10to16,
  hex16to10,
  show_preair_float_param1,
  show_preair_boole_param1,
  show_preair_float_param2,
  show_preair_boole_param2,
  show_ups_param1,
  show_ups_param2,
  show_alternator_float_param1,
  show_alternator_more_float_param1,
  show_alternator_more_float_param2,
  show_alternator_boole_param1,
  show_alternator_boole_param2,
  show_ups_float_param2,
  show_ups_more_float_param2,
  show_ups_boole_param2,
  show_leakage_float_param1,
  show_leakage_more_float_param2
}
